import {
  HTTP
} from '../utils/http.js'

class CommentHttp extends HTTP {
  // 订单评价页面信息
  getCommentStart(data) {
    return this.request({
      url: 'order/comment/start',
      isJavaRequest: true,
      data: data
    })
  }

  // 添加订单评价
  addComment(data) {
    return this.request({
      url: 'order/comment/add',
      isJavaRequest: true,
      data: data
    })
  }

  // 上传图片
  uploadImg(filePath) {
    return this.upload({
      url: 'fs/userinfo/UploadFile',
      filePath: filePath
    })
  }
}

export {
  CommentHttp
}